package com.uni.service.impl;


import com.uni.common.util.PageBean;
import com.uni.entity.Country;
import com.uni.mapper.CountryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CountryService {

    @Autowired
    private CountryMapper countryMapper;

    public List<Country> findList(PageBean<Country> pageBean){
        return countryMapper.findList(pageBean);
    }

    public int countList(PageBean<Country> pageBean){
        return countryMapper.countList(pageBean);
    }

    public Integer insert(Country country){
        return countryMapper.insert(country);
    }

    public Integer update(Country country){
        return countryMapper.update(country);
    }
    public Integer delete(List<String> ids){
        return countryMapper.delete(ids);
    }

}
